package br.uem.din.sd.jogodistribuido.clienteservidor;

import java.rmi.Naming;
import java.rmi.RemoteException;

public class Servidor {

    public Servidor() throws RemoteException {
        String nomeServicoRegistrado = "rmi://localhost:1099/ServicoRemoto";
        ServicoRemoto servicoRemoto = new ServicoRemotoImpl();
        try {
            Naming.rebind(nomeServicoRegistrado, servicoRemoto);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) throws RemoteException {
        new Servidor();
    }
}
